/**
 * 翻转单链表,其中, current.next = prev
 */
function reverseLinkNode(root) {
  let prev = null,
    curr = root;
  while (curr) {
    const next = curr.next;
    curr.next = prev;
    prev = curr;
    curr = next;
  }
  return prev
}
